<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {

            border: 5px solid blue;
            height: 200px;
            width: 200px;
            display: none;
        }

        ul {
            height: 100%;
            margin: 0;
            
        }

        ul li {
            width: 8px;
            height: 30px;
            margin: 0;
            cursor: pointer;
        }
    </style>
</head>

<body>

    <input type="text" name="" id="">
    <div>
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>

    <script>
        const inp = document.querySelector('input')
        const div = document.querySelector('div')
        inp.addEventListener('focus', function () {
            div.style.display = 'block'

        })
        inp.addEventListener('blur',function(){
            div.style.display = 'none'
        })
    </script>
</body>

</html>